package net.destroyer.game.tetris.gui;

import java.awt.Component;
import java.awt.Dimension;


import javax.swing.JPanel;

import net.destroyer.game.tetris.core.IEngine;

public class GameWindow extends JPanel{

	private static final long serialVersionUID = 5426207086025425352L;
	
	private Dimension size;

	public GameWindow(Dimension size, IEngine eng) {
		this.size = size;
		this.setSize(this.size);
		this.setPreferredSize(this.size);
		this.setMinimumSize(this.size);
		this.setMaximumSize(this.size);
		Component res = eng.getVisualResult();
		res.setSize(size);
	    this.add(res);
	}
}

